//
//  SandBoxStore.h
//  UI17_本地存储(sendbox)
//
//  Created by 宝龙 on 16/5/25.
//  Copyright © 2016年 宝龙. All rights reserved.
//

#import <Foundation/Foundation.h>
@import UIKit;


@interface SandBoxStore : NSObject

+ (instancetype)sharedSandBoxStore;

- (NSString *)pathForSandBox;

- (NSString *)pathForDocumentDir;

- (NSString *)pathForLibrary;

- (NSString *)pathForCache;

- (NSString *)pathForTmp;

- (NSString *)pathForApp;



- (BOOL)storeFileWithContent:(id)content Forkey:(NSString *)key;

- (id)readFileForkey:(NSString *)key;

//#pragma mark - store
///** 字符串存取*/
//- (BOOL)storeFileWithString:(NSString *)content ForKey:(NSString *) key;
//
//- (NSString *)readFileWithStringForkey:(NSString *)key;
//
//
///** 数组字典存取*/
//- (BOOL)storeFileWithArray:(NSArray *)content ForKey:(NSString *)key;
//
//- (NSArray *)readFileWithArrayforKey:(NSString *)key;
//
//- (BOOL) storeFileWithDic:(NSDictionary *)content ForKey:(NSString *)key;
//
//- (NSDictionary *)readFileWithDicForKey:(NSString *)key;
//
//
//
///** image存取*/
//- (BOOL)storeFileWithImage:(UIImage *)content forkey:(NSString *)key;
//
//- (UIImage *)readFileImageForkey:(NSString *)key;
//
//- (BOOL)storeFileWithImageData:(NSData *)imageData Forkey:(NSString *)key ;
//
//- (NSData *)readFileImageDataForkey:(NSString *)key;
//
//
///** data存取*/
//- (BOOL)storeFileWithData:(NSData *)content ForKey:(NSString *) key;
//
//- (NSData *)readFileDataForkey:(NSString *)key ;
//
//
//- (BOOL)storeFileToCacheWithData:(NSData *)content ForKey:(NSString *) key;
//
//- (NSData *)readFileInCacheWithDataForkey:(NSString *)key;
//
///** 归档*/
//- (BOOL)storeByArchiverWithObject:(id)obj ForKey:(NSString *)key;
//
//- (id)readByUnArchiverWithkey:(NSString *)key;

@end
